package com.bdqn.demo;
import org.junit.After;
import org.junit.Test;
import static org.junit.Assert.assertNull;
public class JedisTest {
    private JedisAPI jedisAPI;
    @org.junit.Before
    public void startUp() throws Exception{
        jedisAPI = new JedisAPI();
    }
    @After
    public void tearDown() throws Exception {
        if (jedisAPI != null) {
            jedisAPI.destroy();
        }
    }
    @Test
    public void test(){
        assertNull(jedisAPI.get("haha"));
    }
}
